package com.two.screen.water.balance.bean.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import org.greenrobot.greendao.annotation.Generated;

@Entity
public class UserDB {
    @Id(autoincrement = true)
    public Long   id;//本地id
    public String userName;//用户名
    @Index(unique = true) // 定义唯一约束索引，当作主键使用
    public String accounts;//帐户
    public String passwords;//密码
    public String logo;//头像
    public Long   createTime;//用户创建时间 时间戳
    public String createTimeName;//用户创建时间 转化格式显示
    public Long   updateTime;//用户登录时间 时间戳
    public String updateTimeName;//用户登录时间 转化格式显示


    public int isWeight;//0 不允许 1 允许
    public String token;//token
    public String userId;//线上id
    public String comId;//线上com_id
    public String status;//线上status
    public String scN;//线上sc_n
    public String circleId;//线上circle_id
    public String payButtonJson;//收银支付按钮


    @Generated(hash = 1176620508)
    public UserDB(Long id, String userName, String accounts, String passwords, String logo,
            Long createTime, String createTimeName, Long updateTime, String updateTimeName,
            int isWeight, String token, String userId, String comId, String status,
            String scN, String circleId, String payButtonJson) {
        this.id = id;
        this.userName = userName;
        this.accounts = accounts;
        this.passwords = passwords;
        this.logo = logo;
        this.createTime = createTime;
        this.createTimeName = createTimeName;
        this.updateTime = updateTime;
        this.updateTimeName = updateTimeName;
        this.isWeight = isWeight;
        this.token = token;
        this.userId = userId;
        this.comId = comId;
        this.status = status;
        this.scN = scN;
        this.circleId = circleId;
        this.payButtonJson = payButtonJson;
    }

    @Generated(hash = 1312299826)
    public UserDB() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAccounts() {
        return this.accounts;
    }

    public void setAccounts(String accounts) {
        this.accounts = accounts;
    }

    public String getPasswords() {
        return this.passwords;
    }

    public void setPasswords(String passwords) {
        this.passwords = passwords;
    }

    public String getLogo() {
        return this.logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getCreateTimeName() {
        return this.createTimeName;
    }

    public void setCreateTimeName(String createTimeName) {
        this.createTimeName = createTimeName;
    }

    public Long getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateTimeName() {
        return this.updateTimeName;
    }

    public void setUpdateTimeName(String updateTimeName) {
        this.updateTimeName = updateTimeName;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getComId() {
        return this.comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getScN() {
        return this.scN;
    }

    public void setScN(String scN) {
        this.scN = scN;
    }

    public String getCircleId() {
        return this.circleId;
    }

    public void setCircleId(String circleId) {
        this.circleId = circleId;
    }

    public int getIsWeight() {
        return this.isWeight;
    }

    public void setIsWeight(int isWeight) {
        this.isWeight = isWeight;
    }

    public String getPayButtonJson() {
        return this.payButtonJson;
    }

    public void setPayButtonJson(String payButtonJson) {
        this.payButtonJson = payButtonJson;
    }

//    //此处的userId是在CateDB中定义的一个变量（请看CateDB.java）
//    @ToMany(referencedJoinProperty = "userId")
//    private List<CateDB> cateDBList;
}
